<template>
    <div class="container">
      <div class="tips-title">1. Header + Main</div>
      <div class="tips-demo">
        <el-container>
          <el-header>Header</el-header>
          <el-main>Main</el-main>
        </el-container>
      </div>

      <div class="tips-title">2. Header + Main + Footer</div>
      <div class="tips-demo">
        <el-container>
          <el-header>Header</el-header>
          <el-main>Main</el-main>
          <el-footer>Footer</el-footer>
        </el-container>
      </div>

      <div class="tips-title">3. Aside + Main</div>
      <div class="tips-demo">
        <el-container>
          <el-aside width="200px">Aside</el-aside>
          <el-main style="height: 200px;">Main</el-main>
        </el-container>
      </div>

      <div class="tips-title">4. Header + Aside + Main</div>
      <div class="tips-demo">
      <el-container>
        <el-header>Header</el-header>
        <el-container>
          <el-aside width="200px">Aside</el-aside>
          <el-main style="height: 200px;">Main</el-main>
        </el-container>
      </el-container>
      </div>

      <div class="tips-title">5. Header + Aside + Main + Footer</div>
      <div class="tips-demo">
      <el-container>
        <el-header>Header</el-header>
        <el-container>
          <el-aside width="200px">Aside</el-aside>
          <el-container>
            <el-main>Main</el-main>
            <el-footer>Footer</el-footer>
          </el-container>
        </el-container>
      </el-container>
      </div>

      <div class="tips-title">6. Aside + Main ( Header + Main )</div>
      <div class="tips-demo">
        <el-container>
          <el-aside width="200px">Aside</el-aside>
          <el-container>
            <el-header>Header</el-header>
            <el-main>Main</el-main>
          </el-container>
        </el-container>
      </div>

      <div class="tips-title">7. Aside + Main ( Header + Main + Footer)</div>
      <div class="tips-demo">
        <el-container>
          <el-aside width="200px">Aside</el-aside>
          <el-container>
            <el-header>Header</el-header>
            <el-main>Main</el-main>
            <el-footer>Footer</el-footer>
          </el-container>
        </el-container>
      </div>
    </div>
</template>
<script>
    export default {
      name: 'b-container'
    }
</script>
<style>

  .tips-demo .el-header, .tips-demo .el-aside, .tips-demo .el-main, .tips-demo .el-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
  }

  .tips-demo .el-header, .tips-demo .el-footer {
    background-color: #B3C0D1;
    min-height: 60px;
  }

  .tips-demo .el-aside {
    background-color: #D3DCE6;
    min-height: 200px;
  }
  .tips-demo .el-main {
    background-color: #E9EEF3;
    min-height: 160px;
  }

</style>

